import java.util.Scanner;

/**
 * Created by dllo on 18/3/28.
 */
public class Question02 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("输入第一个数字");
        int num = scanner.nextInt();
        System.out.println("输入第二个数字");
        int num1 = scanner.nextInt();
        System.out.println("输入第三个数字");
        int num2 = scanner.nextInt();
        int max = num;//max代表最大值
        if (num < num1) {
            max = num1;
        }

        if (num1 < num2) {
            max = num2;
        }

        int min = num;//min代表最小值
        if (num > num1) {
            min = num1;

        }
        if (num1 > num2) {
            min = num2;
        }
        System.out.println("最大值:" + max + ",最小值:" + min);


    }
}
